package Demo;

import java.awt.Color;
import java.awt.Graphics;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class Form1 extends JPanel{
	
	public void paintComponent(Graphics g){
		super.paintComponent(g);
		/*g.setColor(new Color(0,0,0));
		g.fillRect(0, 0, 200,200);
		
		g.setColor(new Color(255,255,0));
		int[] x={0,100,200,100};
		int[] y={100,0,100,200};		
		g.fillPolygon(x, y, 4);
		
		g.setColor(Color.RED);		
		g.fillRect(50, 50, 100, 100);
		
		g.setColor(Color.GREEN);	
		g.fillOval(50, 50, 100,100);*/
		
		//g.fillOval(75, 25, 50, 50);
		//g.fillOval(25, 75, 50,50);
		//g.fillOval(50, 75, 50, 50);
		g.fillRect(0, 0, 400, 220);
		
	}
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		final JFrame frm = new JFrame("Demo");
		Form1 frm1 = new Form1() ;
		frm.add(frm1);
		frm.setVisible(true);
		frm.setSize(400, 400);
	}
}
